﻿namespace com.crownpack
{
    using Microsoft.SharePoint;

    public class TestColumns_Definition_SiteLevel : CustomBaseDefinition
    {
        #region Fields

        const string SITECOLUMNS = "TestColumns.xml";

        #endregion Fields

        #region Constructors

        public TestColumns_Definition_SiteLevel( SPFeatureReceiverProperties properties )
            : base(properties)
        {
        }

        ~TestColumns_Definition_SiteLevel( )
        {
            Dispose( false );
        }

        #endregion Constructors

        #region Methods

        public override void Create( )
        {
            base.Create( );
            CreateCalculatedSiteColumns( GetFieldDefinitionsAsXml( SITECOLUMNS ) );
        }

        public override void Delete( )
        {
            base.Delete( );
            DeleteSiteColumns( GetFieldDefinitionsAsXml( SITECOLUMNS ) );
        }

        #endregion Methods
    }
}